package compile;

/**
 * Description:
 * Date:2025-06-16
 * Time:15:07
 */
public class Answer {
    //错误码 0为正确，1为错误，2为异常
    private int error;
    //1为错误，2为异常
    private String reason;
    //运行得到标准输出结果
    private String stdout;
    //运行得到错误输出结果
    private String stderr;

    public int getError() {
        return error;
    }

    public void setError(int error) {
        this.error = error;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getStdout() {
        return stdout;
    }

    public void setStdout(String stdout) {
        this.stdout = stdout;
    }

    public String getStderr() {
        return stderr;
    }

    public void setStderr(String stderr) {
        this.stderr = stderr;
    }

    @Override
    public String toString() {
        return "Answer{" +
                "error=" + error +
                ", reason='" + reason + '\'' +
                ", stdout='" + stdout + '\'' +
                ", stderr='" + stderr + '\'' +
                '}';
    }
}
